﻿namespace MugenMvvmToolkit.Ioc.Parameters
{
    /// <summary>
    /// Represents the value of a method argument.
    /// </summary>
    public class MethodParameter : IocParameterBase
    {
        #region Constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="MethodParameter"/> class.
        /// </summary>
        /// <param name="methodName">Specified method name.</param>
        /// <param name="name">Specified parameter name.</param>
        /// <param name="value">Specified parameter value.</param>
        public MethodParameter(string methodName, string name, object value)
            : base(name, value, ParameterType.Method)
        {
            MethodName = methodName;
        }

        #endregion

        #region Properties
        
        /// <summary>
        /// Gets the method name.
        /// </summary>
        public string MethodName { get; private set; }

        #endregion
    }
}